<template>
	<u-popup v-model="popupShow" mode="center" width="516rpx" height="684rpx" border-radius="16"
		:mask-close-able="false" z-index="999">
		<view class="popup_box">
			<view class="title">
				{{popTitle}}
			</view>
			<scroll-view scroll-y="true" style="height: 470rpx;">
				<view class="main">
					<view v-for="(item,index) in popList" :key="index" class="item">
						{{item.title}}
					</view>
				</view>
			</scroll-view>
			<view class="foot">
				<view class="btn" @click="sureOff">
					我知道了
				</view>
			</view>
			
		</view>
	</u-popup>
</template>

<script>
	export default {
		props: {
			popTitle: {
				type: String,
				default: "",
				required: true
			},
			popupShow: {
				type: Boolean,
				default: false,
				required: true
			},
			popList: {
				type: Array,
				default: [],
				required: false
			},
			popupHeight: {
				type: Number,
				default: 0,
				required: true
			}
		},
		data() {
			return {

			}
		},
		methods: {
			sureOff() {
				const off = false
				this.$emit('openOff', off)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.popup_box {
		width: 516rpx;
		height: 648rpx;

		.title {
			width: 100%;
			height: 92rpx;
			background: #f6f6f6;
			border-radius: 16rpx 16rpx 0rpx 0rpx;
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			color: #000000;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.main {
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-top: 40rpx;

			.item {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Medium;
				font-weight: 500;
				text-align: center;
				color: #333333;
				margin-bottom: 20rpx;
			}
		}

		.foot{
			width: 100%;
			height: 120rpx;
			display: flex;
			justify-content: center;
			padding-top: 20rpx;
		}
		.btn {
			
			width: 198rpx;
			height: 68rpx;
			background: #73F0EA;
			border-radius: 16rpx;
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Medium;
			font-weight: 500;
			text-align: center;
			color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>